﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace Flagwind.Data
{
	internal class RuntimeHandle
	{
		public RuntimeMethodHandle MethodHandle
		{
			get;
			private set;
		}

		public RuntimeTypeHandle TypeHandle
		{
			get;
			private set;
		}

		public bool IsGenericType
		{
			get;
			private set;
		}

		public RuntimeHandle(RuntimeMethodHandle methodHandle, RuntimeTypeHandle typeHandle)
		{
			this.MethodHandle = methodHandle;
			this.TypeHandle = typeHandle;
			if(typeHandle != null)
			{
				this.IsGenericType = true;
			}
		}
	}
}